package com.sgb.kjwl.view.ui.adapter.self.pick;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.user.ProjectDetailedListEntity;
import com.sgb.kjwl.model.entity.user.UserPickProjectEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class ProjectDetailedListAdapter extends BaseRecycleAdapter<ProjectDetailedListEntity> {

    public ProjectDetailedListAdapter(Context context, List<ProjectDetailedListEntity> datas) {
        super(context, R.layout.item_project_detailed_list, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, final ProjectDetailedListEntity entity) {
        holder.setBinding(BR.viewModel, entity);
    }

    private ProjectDetailedListAdapter.onEditClickListener editClickListener;

    public void setonEditClick(ProjectDetailedListAdapter.onEditClickListener editClickListener) {
        this.editClickListener = editClickListener;
    }

    public interface onEditClickListener {
        void onDetailedListClick(ProjectDetailedListEntity entity, int position);
    }
}
